package io.mft.commons.function;

public class FunctionActionRequest{

	 
	private RequestValue requestValue;
	public FunctionActionRequest(RequestValue requestValue) {
		this.requestValue=requestValue;
	}
	public RequestValue getRequestValue() {
		return requestValue;
	}
	        /**
	 * @说明：TODO
	 * @字段名称 serialVersionUID
	        */  
	    
	private String requestId;
	/**
	public <T extends FunctionActionRequest> void initValue(T request) {
		this.requestValue=request.getRequestValue();
	}
	**/
	public void setRequestId(String requestId) {
		this.requestId = requestId;
	}
	public String getRequestId() {
		return requestId;
	}
	

	public String getString(String key, String defaultValue) {
		if (!requestValue.containsKey(key)) {
			return defaultValue;
		} else {
			return requestValue.getStr(key);
		}
	}
	
	public int getInt(String key, int defaultValue) {
		return requestValue.getInt(key,defaultValue);
	}
}
